
class GraphGroup:
    
    def __init__(self):
        self.graphs = []
        self.Tis=dict()
        
    def addGraph(self, graph):
        self.graphs.append(graph)
        
    def count(self):
        return len(self.graphs)
    
    def calculateTi(self, topologicalIndex):
        name = topologicalIndex.name()
        values=[] 
        for graph in  self.graphs:
            Ti = topologicalIndex.value(graph)
            values.append(Ti)        
        self.Tis[name]=values   
        return self.Tis 
        
    
        
